<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<title>客户评级管理</title>
		<link rel="stylesheet" href="css/reset.css" />
        <link rel="stylesheet" href="css/platform.css" />
        <link rel="stylesheet" href="css/table.css" />
		<link rel="stylesheet" href="css/tag-grade.css" />
	</head>

	<body>
		<div class="header">
            <div class="u-title">客户评级管理</div>
        </div>
        <!-- 页面内容展示区域 -->
        <div class="container" ms-controller="mainController">
            <div class="tableWrapper">
                <table class="table">
                    <thead>
                        <tr>
                            <th class="order-num">序号</th>
                            <th>客户评级</th>
                            <th>评级描述</th>
                            <th class="operate">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ms-repeat-grade="gradeList">
                            <td class="order-num">
                                {{$index+1}}
                                <input type="hidden" ms-attr-value="grade.id" />
                            </td>
                            <td class="grade">{{grade.name}}</td>
                            <td>
                                <div class="tag-edit desc">
                                    <span>{{grade.remark}}</span>
                                </div>
                            </td>
                            <td class="operate">
                                <span class="modify" ms-click="modify(grade)"></span>
                                <a class="save" href="javascript:;" ms-click="save()">保存</a>
                                <a class="cancel" href="javascript:;" ms-click="noSave()">取消</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!--弹框区域-->
        <div ms-controller="popController">
            <div class="u-popup" id="popup_confirm">
                <div class="bg"></div>
                <div class="asTable">
                    <div class="asTableCell">
                        <div class="asCell alert">
                            <a href="javascript:;" class="close btn-close">×</a>
                            <p class="title">提示</p>
                            <div class="container">
                                <div class="warning"></div>
                                <p ms-if="confirmType=='modify'">当前存在一条未保存的评级，确定要离开编辑吗？</p>
                            </div>
                            <div class="btn-box">
                                <button ms-if="confirmType=='modify'" class="u-btn" ms-click="noSaveEdit()">确定</button>
                                <button class="u-btn gray btn-close">取消</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="u-popup" id="popup_tips">
                <div class="bg"></div>
                <div class="asTable">
                    <div class="asTableCell">
                        <div class="asCell alert">
                            <a href="javascript:;" class="close btn-close">×</a>
                            <p class="title">提示</p>
                            <div class="container">
                                <div class="error"></div>
                                <p></p>
                            </div>
                            <div class="btn-box">
                                <button class="u-btn btn-close">确定</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="js/jquery.min.js"></script>
        <script src="js/avalon.shim.sn.js"></script>
        <script src="js/platform.js"></script>
        <script src="js/DataInterface/DataInterface.js"></script>
        <script src="js/grademanage.js"></script>
	</body>

</html>
